package top.kaoshanji.p1ch12d;

/**
 * 代码清单-p1ch12d-133页b：场景类
 * @author kaoshanji
 * ^_^
 * create time 2025/3/22 19:27
 */
public class ClientV1 {

    public static void main(String[] args) {

        // 定义一个主题
        Subject subject = new RealSubject();

        // 定义主题的代理
        Subject proxy = SubjectDynamicProxy.newProxyInstance(subject);

        // 代理的行为
        proxy.doSomething("Finish");

    }

}
